package cn.tedu.csmall.order.client;

import cn.tedu.csmall.commons.restful.JsonResult;
import cn.tedu.csmall.order.config.DefaultFeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
/*
DefaultFeignConfig局部生效，在客户端类中单独加配置
@FeignClient(value = "cart",configuration = DefaultFeignConfig.class )
 */
@FeignClient("cart")
public interface CartCilent {
    @PostMapping("/base/cart/delete")
    public JsonResult deleteCartByUserIdAndCommodity(
            @RequestParam("userId") String userId
            , @RequestParam("commodityCode") String commodityCode) ;
}
